package com.mdx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 防治实体
 */
@TableName("t_controlgoods")
public class ControlGoodsBean {
    @TableId(value = "pk_cgId",type = IdType.AUTO)
    private int cgId;

    @TableField("f_cgName")
    private String cgName;

    /**
     * 防治类型
     */
    @TableField("f_cgType")
    private String cgType;

    /**
     * 物品类别
     */
    @TableField("f_goodsType")
    private String goodsType;

    /**
     * 用途
     */
    @TableField("f_usage")
    private String usage;

    @Override
    public String toString() {
        return "ControlGoodsBean{" +
                "cgId=" + cgId +
                ", cgName='" + cgName + '\'' +
                ", cgType='" + cgType + '\'' +
                ", goodsType='" + goodsType + '\'' +
                ", usage='" + usage + '\'' +
                '}';
    }

    public int getCgId() {
        return cgId;
    }

    public void setCgId(int cgId) {
        this.cgId = cgId;
    }

    public String getCgName() {
        return cgName;
    }

    public void setCgName(String cgName) {
        this.cgName = cgName;
    }

    public String getCgType() {
        return cgType;
    }

    public void setCgType(String cgType) {
        this.cgType = cgType;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getUsage() {
        return usage;
    }

    public void setUsage(String usage) {
        this.usage = usage;
    }

    public ControlGoodsBean() {
    }

    public ControlGoodsBean(String cgName, String cgType, String goodsType, String usage) {
        this.cgName = cgName;
        this.cgType = cgType;
        this.goodsType = goodsType;
        this.usage = usage;
    }
}
